<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- permette di usare tag tipo foreach -->
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html lang=it>

<head>
<title>Forum</title>
<meta charset="UTF-8">
<jsp:include page="partials/stylesheetChooser.jsp" />
</head>

<body>
	<jsp:include page="partials/header.jsp" />
	<!-- Header non qui ma uguale per tutti (partials) -->

	<div class="content">
		<ul class="posts-list">
			<c:forEach items="${posts}" var="post">
				<li class=""><a
					href="${pageContext.request.contextPath}/viewpost?id=${post.id}">${post.title}</a>
					<em>- ${post.author.fullName}</em>
				</li>
			</c:forEach>
		</ul>
	</div>
</body>

</html>